<?php
/* @var $this SiteController */

$this->layout = '//layouts/site_view';
$this->pageTitle='文章搜索 - Google引擎搜索';
$this->metaArgs = array(
    'keywords'=>$this->pageTitle,
    'description'=> $this->pageTitle
    );
?>
<div class="container-fluid">
    <div class="row-fluid row-list-area">
        <div class='span3 left-nav-box' style='background-color:white'>
            <?php $this->beginWidget('LeftNavWidget');?><?php $this->endWidget(); ?>
        </div>
        <div class="span9 right-nav-box" style='background-color:white'>   
            <div class="google-search" >
                <div id='cse' style='width: 100%;'>
                    <img src = '/images/loading.gif';>
                </div>
                <script src='//www.google.com.hk/jsapi' type='text/javascript'></script>
                <script type='text/javascript'>
                google.load('search', '1', {language: 'zh-Hans', style: google.loader.themes.DEFAULT});
                google.setOnLoadCallback(function() {
                  var customSearchOptions = {};
                  var customSearchControl =   new google.search.CustomSearchControl('009376175491890308694:WMX1392878576', customSearchOptions);
                  customSearchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET);
                  var options = new google.search.DrawOptions();
                  customSearchControl.draw('cse', options);
                }, true);
                </script>
            </div>
        </div>
    </div>
</div>
